package cn.imvc.app.models;

import java.util.List;

import org.springframework.data.domain.Page;

import cn.imvc.app.entities.GoodsOrder;
import cn.imvc.app.entities.Member;
import cn.imvc.data.domain.ViewRequest;

public interface GoodsOrderModel {
	Page<GoodsOrder> find(ViewRequest viewRequest);

	GoodsOrder get(int id);

	GoodsOrder save(GoodsOrder entity);

	GoodsOrder update(GoodsOrder entity);

	void delete(int id);

	void deleteBatch(int[] ids);
	
	GoodsOrder findByMemberAndId(Member member, Integer id);
	
	List<GoodsOrder> findByGoodsOrderIdIn(List<Integer> goodsOrderIds);

}
